package com.jack.Extends;

import java.sql.SQLOutput;

public class Student extends People{
    //定义实例成员变量
    private String stuID;
    //定义无参构造器
    Student(){

    }

    //定义有参构造器
    Student(String name,int age,char sex,String stuID){
        super(name,age,sex);
        this.stuID = stuID;
    }


    @Override
    public void show(){
        System.out.println("姓名:"+this.getName()+"  年龄:"+this.getAge()+"  性别:"+this.getSex()+"  学号:"+this.stuID);
    }
}
